package com.x.mvp.entity.tab;

import com.flyco.tablayout.listener.CustomTabEntity;

/**
 * Created by H on 17/10/30.
 */

public class TabEntity implements CustomTabEntity {
    private String title;
    private int normRes;
    private int selRes;

    public TabEntity(String title, int normRes, int selRes) {
        this.title = title;
        this.normRes = normRes;
        this.selRes = selRes;
    }

    @Override
    public String getTabTitle() {
        return title;
    }

    @Override
    public int getTabSelectedIcon() {
        return selRes;
    }

    @Override
    public int getTabUnselectedIcon() {
        return normRes;
    }
}
